<!--


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

<div class="modal-header">
    <button type="button" class="close" ng-click="close()"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <h3 class="modal-title">{{deliveryService.displayName}} ({{deliveryService.id}} | {{deliveryService.xmlId}})</h3>
</div>
<div class="modal-body">
    <form id="dsConfigForm" name="dsConfigForm" role="form" novalidate>
        <div class="row settings-row">
            <div class="settings-col col-sm-4 col-md-4">
                <div class="form-group">
                    <input type="checkbox" ng-disabled="true" ng-model="deliveryService.active">  <strong>Active</strong>
                </div>
            </div>
            <div class="settings-col col-sm-4 col-md-4">
                <div class="form-group">
                    <input type="checkbox" ng-disabled="true" ng-model="deliveryService.ipv6RoutingEnabled">  <strong>IPv6 Routing Enabled</strong>
                </div>
            </div>
            <div class="settings-col col-sm-4 col-md-4">
                <div class="form-group">
                    <input type="checkbox" ng-disabled="true" ng-model="deliveryService.signed">  <strong>Signed URLs</strong>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="col-sm-6 col-md-6">
                <div class="form-group">
                    <label class="control-label" for="orgServerFqdn">Origin FQDN:</label>
                    <input id="orgServerFqdn" name="orgServerFqdn" type="text" class="form-control" ng-model="deliveryService.orgServerFqdn" readonly>
                </div>
                <div class="form-group">
                    <label class="control-label" for="checkPath">Origin health check:</label>
                    <input id="checkPath" name="checkPath" type="text" class="form-control" ng-model="deliveryService.checkPath" readonly>
                </div>
                <div class="form-group">
                    <label class="control-label" for="edgeFQDNs">Edge FQDNs:</label>
                    <textarea id="edgeFQDNs" name="edgeFQDNs" rows="4" cols="17" class="form-control" readonly>{{edgeFQDNs(deliveryService)}}</textarea>
                </div>
                <div class="form-group">
                    <label class="control-label" for="edgeHeaderRewrite">Edge header rewrite rules:</label>
                    <input id="edgeHeaderRewrite" name="edgeHeaderRewrite" type="text" class="form-control" ng-model="deliveryService.edgeHeaderRewrite" readonly>
                </div>
                <div class="form-group">
                    <label class="control-label" for="midHeaderRewrite">Mid header rewrite rules:</label>
                    <input id="midHeaderRewrite" name="midHeaderRewrite" type="text" class="form-control" ng-model="deliveryService.midHeaderRewrite" readonly>
                </div>
                <div class="form-group">
                    <label class="control-label" for="regexRemap">Regex remap expression:</label>
                    <input id="regexRemap" name="regexRemap" type="text" class="form-control" ng-model="deliveryService.regexRemap" readonly>
                </div>
            </div>
            <div class="col-sm-6 col-md-6">
                <div class="form-group">
                    <label class="control-label" for="type">Content Routing Type:</label>
                    <input id="type" name="type" type="text" class="form-control" ng-model="deliveryService.type" readonly>
                </div>
                <div class="form-group" ng-show="isHTTP(deliveryService)">
                    <label class="control-label" for="httpBypassFqdn">HTTP Bypass FQDN:</label>
                    <input id="httpBypassFqdn" name="httpBypassFqdn" type="text" class="form-control" ng-model="deliveryService.httpBypassFqdn" readonly>
                </div>
                <div class="form-group" ng-show="!isHTTP(deliveryService)">
                    <label class="control-label" for="dnsBypassIp">DNS Bypass IP:</label>
                    <input id="dnsBypassIp" name="dnsBypassIp" type="text" class="form-control" ng-model="deliveryService.dnsBypassIp" readonly>
                </div>
                <div class="form-group" ng-show="!isHTTP(deliveryService)">
                    <label class="control-label" for="dnsBypassIp6">DNS Bypass IPv6:</label>
                    <input id="dnsBypassIp6" name="dnsBypassIp6" type="text" class="form-control" ng-model="deliveryService.dnsBypassIp6" readonly>
                </div>
                <div class="form-group" ng-show="!isHTTP(deliveryService)">
                    <label class="control-label" for="dnsBypassTtl">DNS Bypass TTL:</label>
                    <input id="dnsBypassTtl" name="dnsBypassTtl" type="text" class="form-control" ng-model="deliveryService.dnsBypassTtl" readonly>
                </div>
                <div class="form-group" style="margin-top: 20px;" ng-show="!isHTTP(deliveryService)">
                    <label class="control-label" for="maxDnsAnswers">Max DNS Answers:</label>
                    <input id="maxDnsAnswers" name="maxDnsAnswers" type="text" class="form-control" ng-model="deliveryService.maxDnsAnswers" readonly>
                </div>
                <div class="row">
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">
                            <label class="control-label" for="globalMaxMbps">Global Max Mbps:</label>
                            <input id="globalMaxMbps" name="globalMaxMbps" type="text" class="form-control" ng-model="deliveryService.globalMaxMbps" readonly>
                        </div>
                    </div>
                    <div class="col-sm-6 col-md-6">
                        <div class="form-group">
                            <label class="control-label" for="globalMaxMbps">Global Max Tps:</label>
                            <input id="globalMaxTps" name="globalMaxTps" type="text" class="form-control" ng-model="deliveryService.globalMaxTps" readonly>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="rangeRequestHandling">Range Request Handling:</label>
                    <input id="rangeRequestHandling" name="rangeRequestHandling" type="text" class="form-control" value="{{rangeRequestHandling(deliveryService)}}" readonly>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="control-label" for="longDesc">Long Description:</label>
                    <textarea id="longDesc" name="longDesc" rows="5" cols="17" class="form-control" ng-model="deliveryService.longDesc" readonly></textarea>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn action-btn" ng-click="close()">Close</button>
</div>